﻿#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WaveEngine.Components.Graphics2D;
using WaveEngine.Extensions.Resources; 
#endregion

namespace WaveEngine.Extensions.Components
{
    public class SpriteAtlasEnum : SpriteAtlas
    {
        private Enum textureValue;

        public Enum TextureValue
        {
            get
            {
                return this.textureValue;
            }

            set
            {
                this.textureValue = value;
                base.TextureName = this.textureValue.ToString();
            }
        }

        public SpriteAtlasEnum(Enum textureValue)
            : base(ResourceManager.GetResourcePath(textureValue), textureValue.ToString())
        {
            this.textureValue = textureValue;
        }
    }
}
